<template>
  <div>
    <ul class="city-alphabet">
      <li class="item" v-for="(item,key) in cities" :key ="key">{{ key }}</li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'cityAlphabet',
  props: {
    cities: {
      type: Object,
      default: () => []
    }
  }
}
</script>

<style lang="scss" scoped>
.city-alphabet {
  width: 0.4rem;
  display: flex;
  justify-content: center;
  flex-direction: column;
  position: absolute;
  top: 1.58rem;
  right: 0;
  bottom: 0;
  .item {
    line-height: .4rem;
    color: $bgColor;
    text-align: center;
  }

}
</style>
